package com.river.boot.biz.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @author JiangCheng Xiang
 */
@Data
@Schema(description = "菜品规格配置表单对象")
public class ProductSpecConfigForm {

    @NotNull(message = "商品ID不能为空")
    @Schema(description = "商品ID")
    private Long id;

    @Valid
    @Schema(description = "规格列表")
    private List<ProductSpecForm> specifications;

}
